//
// Created by LiuYou on 2021/7/23.
//

#include "HasPtrLikePtrUseSmartPointer.hpp"

ResourceManagement::HasPtrLikePtrUseSmartPointer::HasPtrLikePtrUseSmartPointer(const std::string& string) :
        sharedPtrString( std::make_shared<std::string>( string )),
        defaultValue( 0 ) {}

ResourceManagement::HasPtrLikePtrUseSmartPointer::~HasPtrLikePtrUseSmartPointer() = default;



/// \brief Use '= default' to define a trivial copy constructor
/// 使用'= default'来定义普通的复制构造函数
/// 因为使用指针指针后让类的行为像指针, 非常简单。CLion的提示是干脆就使用默认的拷贝构造函数就可以了。
//ResourceManagement::HasPtrLikePtrUseSmartPointer::HasPtrLikePtrUseSmartPointer(
//        const ResourceManagement::HasPtrLikePtrUseSmartPointer& rhs) :
//        sharedPtrString( rhs.sharedPtrString ), defaultValue( rhs.defaultValue ) {
//
//}


